package stream;

import java.util.Arrays;
import java.util.Collection;
import java.util.List;

/**
 * @author LiuYan
 * @date 2021/11/18 13:14
 */
public class Part07 {

    public static void main(String[] args) {
        List<String> list = Arrays.asList("aaaa", "bbbb", "cccc", "dddd");
        list.stream().map(str -> str.toUpperCase()).forEach(System.out::println);

        List<List<String>> listList = Arrays.asList(Arrays.asList("a", "b", "c", "d"), Arrays.asList("e", "f", "g", "h"));
        listList.stream().flatMap(Collection::stream).forEach(System.out::println);


    }
}
